package com.xjj.feign;

import com.xjj.entity.ResponseEntity;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName MangeFeignClient
 * @Description TODO
 * @Author GH
 * @Date 2022/10/25 10:00
 * @Version 1.0
 **/
@FeignClient(value = "manage")
public interface ManageFeignClient {
    @GetMapping("/manage/admin/manager/getManagerById/{id}")
    @ApiOperation(value = "根据老师id查询老师信息")
    public ResponseEntity getManagerById(@PathVariable int id);

    @GetMapping("/manage/admin/student/getStudentById/{id}")
    @ApiOperation(value = "根据学生id查询学生信息")
    public ResponseEntity getStudentById(@PathVariable int id);
}
